package com.bw.lib_http

import retrofit2.Retrofit

object RetrofitFactory {
    lateinit var retrofit:Retrofit

    fun factory(type: HttpType) {
        retrofit = when(type){
            HttpType.TOKEN -> {
                TokenRetrofitImpl().createRetrofit()
            }
            HttpType.NONE -> {
                NoneRetrofitImpl().createRetrofit()
            }
        }
    }
}